<ul class="navigator"> 
  {% for category in category_list %}
    <li><a href="{% url 'blog:category' category.pk %}" target="_self">{{ category.name }}</a></li> 
  {% empty %}
    <li><a href="#" target="_self">暂无分类！</a></li>
  {% endfor %}
</ul> 